package com.fulihui.usercore.biz.conv;

import com.fulihui.usercore.dal.dataobj.UnionidOpenidDO;
import com.fulihui.usercore.dto.UnionidOpenidDTO;

/**
 *
 * @author Created by Willard.Hu on 2016/8/17 0017.
 */
public class UnionidOpenidConv {

    public static UnionidOpenidDTO conv2DTO(UnionidOpenidDO _do) {
        if (_do == null) {
            return null;
        }
        UnionidOpenidDTO dto = new UnionidOpenidDTO();
        dto.setUnionid(_do.getUnionid());
        dto.setOpenId(_do.getOpenId());
        return dto;
    }

    public static UnionidOpenidDO conv2DO(UnionidOpenidDTO dto) {
        if (dto == null) {
            return null;
        }
        UnionidOpenidDO _do = new UnionidOpenidDO();
        _do.setUnionid(dto.getUnionid());
        _do.setOpenId(dto.getOpenId());
        _do.setOpenId(dto.getOpenId());
        return _do;
    }
}
